import request from './request'

// 按需导出每个请求，咱们称这种请求为每个api
// export const TopicApi = (params) => request.get('/topic/list', {params})

//登录接口 
export const LoginByWeb = (params) => request.post('/nebula-api/login',params )

// 全部订单
export const Allorder = (params) => request.get('/nebula-api/order/v1/list', {params})

// 待发货
export const Sendgoods = (params) => request.post('/nebula-api/order/v1/list/1',params )

// 待收货
export const Delivery = (params) => request.get('/nebula-api/order/v1/list/2',{params} )

// 待评价
export const unAssess = (params) => request.get('/nebula-api/order/v1/list/3',{params} )

// 发货
export const sendDelivery = (params) => request.post('/nebula-api/order/v1/send',params)

// 确认发货
export const querenGoods= (params) => request.post('/nebula-api/order/v1/confirmReceipt/'+params.serialNo)

// 订单评价
export const tijiao= (params) => request.post('/nebula-api/order/v1/evaluate',params)

// 查看评价
export const cankan= (params) => request.get('/nebula-api/order/v1/evaluateInfo/'+params.serialNo)

// 消息中心列表
export const message= (params) => request.get('/nebula-api/api/message',{params})

//消息中心详情
export const messageDetal= (params) => request.get('/nebula-api/api/message/'+params.id)

// 标记信息为已读
const QS = require('qs')
export const msgUnRead= (params) => request.put('/nebula-api/api/message/updates',QS.stringify(params))

// 个人中心用户信息展示
export const usershow= (params) => request.get('/nebula-api/users/list',{params})

// 个人中心用户信息详情
export const perDetail= (params) => request.get('/nebula-api/users/info',{params})

// 个人中心 版本信息
export const version= (params) => request.get('/nebula-api/users/version',{params})

// 物流单
export const expressAPI= (params) => request.get('/nebula-api/api/star',{params})

// 物流单评价
export const expEstimate= (params) => request.put('/nebula-api/api/star',params)

// 物流单评价详情
export const exmatedetail= (params) => request.get('/nebula-api/api/star/'+params.id)

// 客户列表信息
export const Cust= (params) => request.get('/nebula-api/api/cust',{params})

// 客户详情信息
export const CustDetail= (params) => request.get('/nebula-api/api/cust/'+params.id)

// 获取客户视图
export const Custview= (params) => request.post('/nebula-api/api/cust/'+params.id)

// 修改客户信息
export const custxiugai= (params) => request.put('/nebula-api/api/cust',params)

// 新增客户信息
export const AddcustApi= (params) => request.post('/nebula-api/api/cust',params)
// 新增走访信息
export const visit = (params) => request.post('/nebula-api/api/visit',  params);
// 获取走访信息详情
export const visitDetail = (params) => request.get('/nebula-api/api/visit/' + params.id);
// 走访列表信息
export const visitList = (params) => request.get('/nebula-api/api/visit',  params);

